package com.example.demo.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.model.User;

@Service
@Transactional
public class UserServiceImpl implements UserService {
	public List<User> findAllUser() {
		final List<User> users = new ArrayList<User>();
 		final User user = new User();
		user.setFirstName("dingdayong");
		users.add(user);
		
 		final User user1 = new User();
		user1.setFirstName("din");
		users.add(user1);
		return users;
	}
}
